export function fomatDate(value: string) {
    if (!value) return ""
    var date = new Date(value)
    return date.toLocaleString().replaceAll("/", "-");
}

export function fomatstatus(value: number) {
    if (value == 0) {
        return "待处理"
    } else if (value == 1) {
        return "退货中"
    } else if (value == 2) {
        return "已完成"
    } else if (value == 3) {
        return "已拒绝"
    } else if (value == 4) {
        return "已关闭"
    }
}

export function fomatfilter(value: string) {
    let newArr = eval('(' + value + ')')

    return newArr
}

export function fomattype(value: number) {
    if (value == 1) {
        return "app订单"
    } else if (value == 0) {
        return "PC订单"
    }
}